package com.mendmix.tutorial;

import org.springframework.boot.WebApplicationType;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

import com.mendmix.springcloud.starter.BaseApplicationStarter;


@SpringBootApplication
@EnableDiscoveryClient
@ComponentScan(value = {"com.mendmix.tutorial","com.mendmix.springcloud.autoconfigure","com.mendmix.gateway.autoconfigure"})
public class ApplicationStarter extends BaseApplicationStarter{

	public static void main(String[] args) {
		long starTime = before(args);
		new SpringApplicationBuilder(ApplicationStarter.class).web(WebApplicationType.REACTIVE).run(args);
		after(starTime);
	}
	
}
